/*
 *  DialogNode.cpp
 *  SquirrelAdven
 *
 *  Created by Wen Xu on 3/7/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#include "DialogNode.h"
#include <iostream>

DialogNode::DialogNode() {
	dialogType = -1;
}

DialogNode::~DialogNode() {
}

void DialogNode::setDialogID(int ID) {
	dialogID = ID;
}

void DialogNode::setDialogType(int type) {
	dialogType = type;
}

void DialogNode::setDialogContent(string content) {
	dialogContent = content;
}

void DialogNode::addChild(DialogNode * child) {
	children.push_back(child);
}

int DialogNode::getDialogID() {
	return dialogID;
}

int DialogNode::getDialogType() {
	return dialogType;
}

string DialogNode::getDialogContent() {
	return dialogContent;
}

int DialogNode::getChildrenCount() {
	return children.size();
}

DialogNode * DialogNode::getChildByIndex(int index) {
	return children[index];
}

void DialogNode::setDialogPoints(int p) {
	points = p;
}

int DialogNode::getDialogPoints() {
	return points;
}

void DialogNode::printData() {
	cout << "ID: " << dialogID << "\n";
	cout << "Type: " << dialogType << "\n";
	cout << "Content: " << dialogContent << "\n";
}